import service from '@/utils/request'

export const useProjectApi = (id: Number) => {
	return service.get('/sys/project/' + id)
}

export const useProjectSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/sys/project', dataForm)
	} else {
		return service.post('/sys/project/save', dataForm)
	}
}

export const useProjectListApi = (dataForm: any) => {
	return service.post('/sys/project/list', dataForm)
}
